package com.easy.work.db;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;

/**
 * @author zhangfeng
 * @date 2018/01/04
 * @desc
 */

@DatabaseTable(tableName = "messageBean")
public class MessageBean implements Serializable {

    @DatabaseField(generatedId = true)
    private int id;
    @DatabaseField
    private String userId;      // 用户Id
    @DatabaseField
    private boolean readState;  // 是否读过
    @DatabaseField  // 3 系统消息  1 面试消息  2 录用消息
    private int msgType;
    @DatabaseField
    private String msgTypeText;
    @DatabaseField
    private String title;
    @DatabaseField
    private String companyName;
    @DatabaseField
    private String time;
    @DatabaseField
    private String address;
    @DatabaseField
    private String material;
    @DatabaseField
    private String phone;

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    @DatabaseField
    private String date = "";

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public boolean getReadState() {
        return readState;
    }

    public void setReadState(boolean readState) {
        this.readState = readState;
    }

    public String getMsgTypeText() {
        return msgTypeText;
    }

    public void setMsgTypeText(String msgTypeText) {
        this.msgTypeText = msgTypeText;
    }

    public int getMsgType() {
        return msgType;
    }

    public void setMsgType(int msgType) {
        this.msgType = msgType;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getMaterial() {
        return material;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
